package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
import cn.itcast.hotel.pojo.PageResult;
import cn.itcast.hotel.pojo.RequestParams;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface IHotelService extends IService<Hotel> {
    PageResult queryHotels(RequestParams param);

    Map<String,List<String>> filters(RequestParams param);

    List<String> suggestion(String key);

    void deleteById(Long id);

    void InsertOrUpdateById(Long id);
}
